import Vue from 'vue'
import Router from 'vue-router'
import Index from "../components/Index";
import List from "../components/user/List";
import Order from "../components/order/Order";
import First from "../components/order/First";
import Second from "../components/order/Second";
import Message from "../components/message/Message";
import Thirdly from "../components/order/Thirdly";



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      component: Index
    },
    {
      path: '/',
      redirect: '/index'
    },
    {
      path: '/users',
      component: List
    },
    {
      path: '/order',
      component: Order,
      children:[
        {
          path: '/first',
          component:First
        },
        {
          path: '/second',
          component: Second
        },
        {
          path: '/thirdly',
          component: Thirdly
        }
      ]
    },
    {
      path: '/message',
      component: Message
    }
  ]
})
